package com.xpc.rpc.protocol.header;

/**
 * 请求头
 */
public class RpcHeader {

    /**
     * 请求类型，是普通请求，或者是心跳消息等
     */
    private int msgType;

    /**
     * 消息体的长度
     */
    private int bodyLen;

    /**
     * 请求的唯一ID
     */
    private Long requestId;

    /**
     * 序列化类型
     */
    private int serializationType;


    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }

    public int getSerializationType() {
        return serializationType;
    }

    public void setSerializationType(int serializationType) {
        this.serializationType = serializationType;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public int getBodyLen() {
        return bodyLen;
    }

    public void setBodyLen(int bodyLen) {
        this.bodyLen = bodyLen;
    }

    public Long getRequestId() {
        return requestId;
    }

    public void setRequestId(Long requestId) {
        this.requestId = requestId;
    }
}
